import jieba
from py2neo import Graph,Node,Relationship
# Create py2neo connection
graph = Graph(host='localhost',auth=('neo4j','123'))
# Create your views here.

def main():
    global graph

    jieba.load_userdict(r"C:\Users\srhee\Desktop\user_dict.txt")
    p = jieba.cut("xx服务下的地块图层")
    print(p)
    print([i for i in jieba.cut("xx服务下的地块图层",cut_all=True,HMM=True)])
    print([i for i in jieba.lcut("xx服务下的地块图层",cut_all=True,HMM=True)])
    print('over.')


if __name__ == '__main__':
    main()